import { createApp } from "vue";
import "./style.css";
import router from "./router";
import { createPinia } from "pinia";
// 持久化组件
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
import "./assets/style/public.css";
import "./assets/style/reset.css";
import "./assets/style/comm.postcss";
import "./assets/style/variables.postcss";
import App from "./App.vue";

const app = createApp(App);
const pinia = createPinia();
// 持久化配置
pinia.use(piniaPluginPersistedstate as any);
app.use(pinia);
app.use(router);
app.mount("#app");
